package cn.com.enersun.iec61850.integratedDataProcessing;

import java.net.InetAddress;

/**
 * Created by YYC on 2017/6/8.
 */
public class ServerNetParameter {
    int port;
    int backlog;
    InetAddress bindAddr;

    public ServerNetParameter(InetAddress bindAddr, int port, int backlog) {
        this.port = port;
        this.backlog = backlog;
        this.bindAddr = bindAddr;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getBacklog() {
        return backlog;
    }

    public void setBacklog(int backlog) {
        this.backlog = backlog;
    }

    public InetAddress getBindAddr() {
        return bindAddr;
    }

    public void setBindAddr(InetAddress bindAddr) {
        this.bindAddr = bindAddr;
    }

    @Override
    public String toString() {
        return "Net{" +
                "port=" + port +
                ", backlog=" + backlog +
                ", bindAddr=" + bindAddr +
                '}';
    }
}